package com.freeman.cement.exception;


/**
 * @author 66
 * 该枚举类集中定义了跟业务有关的异常
 */
public enum AppExceptionCodeMsg {

    //region 66
    TOKEN_NOT_EXISTS(403,"无token"),
    INVALID_TOKEN(10000,"验证错误，请登录"),
    USERNAME_OR_PASSWORD_WRONG(10001,"用户名或密码错误"),
    ID_IS_NULL(10002,"id不能为空"),
    ID_NOT_EXISTS(10003,"此id不存在"),
    PAGE_NO_OR_SIZE_WRONG(10004,"分页请求范围错误"),
    USERNAME_IS_NULL(10005,"用户名为空"),
    NAME_EXIST(10006,"名称已存在"),
    CODE_EXIST(10007,"编号已存在"),
    ADD_STAFF_ERROR(10008,"新增员工错误"),
    DELETE_STAFF_ERROR(10009,"删除员工错误"),
    UPDATE_STAFF_ERROR(10010,"修改员工错误"),
    CONTENT_IS_NULL(10011,"内容不能为空"),
    ADD_DEPT_ERROR(10012,"新增工段错误"),
    DELETE_DEPT_ERROR(10013,"删除工段错误"),
    UPDATE_DEPT_ERROR(10014,"修改工段错误"),
    ADD_WORKSECTION_ERROR(10015,"新增专业错误"),
    DELETE_WORKSECTION_ERROR(10016,"删除专业错误"),
    UPDATE_WORKSECTION_ERROR(10017,"修改专业错误"),
    PARAM_IS_NULL(10018,"参数不能为空"),
    UPDATE_CAMERA_ERROR(10019,"修改摄像头错误"),
    ADD_EZVIZ_ERROR(10020,"新增萤石云信息错误"),
    UPDATE_EZVIZ_ERROR(10021,"修改萤石云信息错误"),
    CENTRE_P5_IS_NULL(10022,"中心屏幕摄像头标识不能为空"),
    CENTRE_P5_NOT_EXIXTS(10023,"不存在此标识的摄像头，此标识不可作为中心屏幕摄像头"),
    ADD_CAMERA_SQUARE_ERROR(10024,"新增摄像头九宫格设置错误"),
    UPDATE_CAMERA_SQUARE_ERROR(10025,"更新摄像头九宫格设置错误"),
    DELETE_CAMERA_SQUARE_ERROR(10026,"删除摄像头九宫格设置错误"),
    EVENT_TYPE_NAME_OR_CODE_IS_SAME(10027,"事件名称或事件类型码已存在"),
    EVENT_NAME_EXIST(10028,"事件名称已存在"),
    EVENT_TYPE_EXIST(10029,"事件类型码已存在"),
    ADD_EVENT_TYPE_ERROR(10030,"新增事件类型错误"),
    UPDATE_EVENT_TYPE_ERROR(10031,"更新事件类型错误"),
    DELETE_EVENT_TYPE_ERROR(10032,"删除事件类型错误"),
    TIME_STRING_FORMAT_IS_WRONG(10033,"时间字符串格式错误"),
    UPDATE_EVENT_DATA_ERROR(10034,"更新事件状态错误"),
    ADD_EVENT_HANDLE_RECORD_ERROR(10035,"新增事件处理记录错误"),
    CALL_SMS_SERVICE_ERROR(10036,"调用短信服务失败"),
    CALL_PHONE_SERVICE_ERROR(10036,"调用电话服务失败"),
    ADD_SHIFT_RECORD_ERROR(10037,"新增交班记录错误"),
    UPDATE_SHIFT_RECORD_ERROR(10038,"更新交接班记录错误"),
    NO_AUTHORITY_OF_DUTY(10039,"无值班员权限，无法进行交接班"),
    FILE_IS_NULL(10040, "错误，文件为空"),
    PICTURE_IS_TOO_LARGE(10041, "错误，图片文件大小过大"),
    PICTURE_FORMAT_IS_WRONG(10042, "错误，图片文件格式错误"),
    UPLOAD_FILE_NAME_WRONG(10043, "错误，上传失败，文件名写入异常"),
    UPLOAD_FILE_ERROR(10044, "错误，上传失败"),
    PASSWORD_WRONG(10045, "原始密码错误"),
    UPDATE_PASSWORD_ERROR(10046, "修改密码错误"),
    DELETE_CAMERA_ERROR(10047, "删除摄像头错误"),
    NAME_IS_NULL(10048, "名称不能为空"),
    ADD_CAMERA_GROUP_ERROR(10049, "添加摄像头组错误"),
    DELETE_CAMERA_GROUP_ERROR(10050, "删除摄像头组错误"),
    UPDATE_CAMERA_GROUP_ERROR(10051, "修改摄像头组错误"),
    ADD_AUTO_ASSIGNMENT_ERROR(10052, "新增自动转发规则错误"),
    DELETE_AUTO_ASSIGNMENT_ERROR(10053, "删除自动转发规则错误"),
    UPDATE_AUTO_ASSIGNMENT_ERROR(10054, "修改自动转发规则错误"),

    NO_AUTHORITY(10090, "无访问权限"),


    USERNAME_IS_INVALID(10100,"用户已停用");

    private int code ;
    private String msg ;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    AppExceptionCodeMsg(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

}

